package mm.util;

import org.w3c.dom.Document;

import junit.framework.TestCase;

public class XMLUtilsTest extends TestCase {

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public void testReadUnknownXML() {
		Document document=XMLUtils.readClassPath("123.xml", false);
		assertNull(document);
	}

	public void testReadAvaliableXML() {
		Document document=XMLUtils.readClassPath("/spring_test.xml", false);
		assertNotNull(document);
		assertEquals("beans", document.getDocumentElement().getNodeName());
	}

}
